const co = require('co');
const fetch = require('node-fetch');
var url ="https://api.douban.com/v2/movie/"
co(function *(){
    const res = yield fetch(url+"/search?q=ni&count=1");
    const result = yield res.json();
    const detail = yield fetch(url+result.subjects[0].id)
    const detailJson = yield detail.json();
    console.log(detailJson)
})

